﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "CRMeetingRequest";
	string DBTablePK = "ID";
	string DBTableTitle = "ConferenceName";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"crmeetingrequest.beginday\":\"yyyy-MM-dd\",\"crmeetingrequest.begintime\":\"HH:mm\",\"crmeetingrequest.endday\":\"yyyy-MM-dd\",\"crmeetingrequest.endtime\":\"HH:mm\"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="CRMeetingRequest.ConferenceName" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="CRMeetingRequest" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="ConferenceName" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "CRMeetingRequest", fieldStatus, displayModel);
	});
</script>
<p><input type="hidden" id="CRMeetingRequest.ID" name="CRMeetingRequest.ID" isflow="1" type1="flow_hidden" value=""/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center"><span class="title">会 议 纪 要<br/></span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">基本信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">主题</p><input type="text" id="CRMeetingRequest.ConferenceName" type1="flow_text" name="CRMeetingRequest.ConferenceName" value="" valuetype="0" align="left" isflow="1" class="mytext" title=""/></td></tr><tr class=""><td class="" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">开始日期</p><input type="text" type1="flow_datetime" id="CRMeetingRequest.BeginDay" name="CRMeetingRequest.BeginDay" value="" format="yyyy-MM-dd" defaultvalue="" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td class="" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">开始时间</p><input type="text" type1="flow_datetime" id="CRMeetingRequest.BeginTime" name="CRMeetingRequest.BeginTime" value="" format="HH:mm" defaultvalue="" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">结束日期</p><input type="text" type1="flow_datetime" id="CRMeetingRequest.EndDay" name="CRMeetingRequest.EndDay" value="" format="yyyy-MM-dd" defaultvalue="" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td class="bottom" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">结束时间</p><input type="text" type1="flow_datetime" id="CRMeetingRequest.EndTime" name="CRMeetingRequest.EndTime" value="" format="HH:mm" defaultvalue="" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">参会人员</p></th></tr><tr class="topTr bottomTr"><td class="top bottom" rowspan="1" colspan="2" id="CR" style="word-break: break-all;" valign="middle" align="left"><table class="flowformsubtable" data-showindex="1" data-sortstring="" style="width:99%;margin:0 auto;" cellpadding="0" cellspacing="1" issubflowtable="1" id="subtable_CRConferenceSign_ID_ID_CRMeetingID"><thead><tr><th style="text-align:center;width:50px;">序号</th><th style="text-align:left;padding-right:3px;">姓名<input type="hidden" name="flowsubtable_id" value="CRConferenceSign_ID_ID_CRMeetingID"/><input type="hidden" name="flowsubtable_CRConferenceSign_ID_ID_CRMeetingID_secondtable" value="CRConferenceSign"/><input type="hidden" name="flowsubtable_CRConferenceSign_ID_ID_CRMeetingID_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_CRConferenceSign_ID_ID_CRMeetingID_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_CRConferenceSign_ID_ID_CRMeetingID_secondtablerelationfield" value="CRMeetingID"/></th><th style="text-align:left;padding-right:3px;">签到时间</th><th></th></tr></thead><tbody><tr type1="listtr"><td style="text-align:center;"><label name="showindex">1</label></td><td colname="CRConferenceSign_UserName" iscount="0" style="text-align:left;padding-right:3px;"><input type="hidden" name="hidden_guid_CRConferenceSign_ID_ID_CRMeetingID" value="c2c67df81a3ee285765d8f347602add4"/><input type="hidden" name="flowsubid" value="CRConferenceSign_ID_ID_CRMeetingID"/><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="CRConferenceSign_ID_ID_CRMeetingID_c2c67df81a3ee285765d8f347602add4_CRConferenceSign_UserName" id="CRConferenceSign_ID_ID_CRMeetingID_c2c67df81a3ee285765d8f347602add4_CRConferenceSign_UserName" colname="CRConferenceSign_UserName" value=""/></td><td colname="CRConferenceSign_SignDate" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="CRConferenceSign_ID_ID_CRMeetingID_c2c67df81a3ee285765d8f347602add4_CRConferenceSign_SignDate" id="CRConferenceSign_ID_ID_CRMeetingID_c2c67df81a3ee285765d8f347602add4_CRConferenceSign_SignDate" colname="CRConferenceSign_SignDate" value=""/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr></tbody></table></td></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">会议信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">主持人</p><input type="text" type1="flow_org" id="CRMeetingRequest.Host" name="CRMeetingRequest.Host" value="" style="width:55%" more="0" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/></td></tr><tr><td rowspan="1" colspan="2" id="CR" style="word-break: break-all;" valign="middle" align="left"><p class="txt">会议记录</p><textarea isflow="1" type1="flow_textarea" id="CRMeetingRequest.MeetingRecord" name="CRMeetingRequest.MeetingRecord" class="mytext" style="width:80%; height:40px;"></textarea></td></tr><tr><td rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">会议决定</p><textarea isflow="1" type1="flow_textarea" id="CRMeetingRequest.Decision" name="CRMeetingRequest.Decision" class="mytext" style="width:80%; height:40px;"></textarea></td></tr><tr><td class="" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">备注</p><textarea isflow="1" type1="flow_textarea" id="CRMeetingRequest.Notes" name="CRMeetingRequest.Notes" class="mytext" style="width:80%; height:40px;"></textarea></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">附件</p><input type="text" type1="flow_files" id="CRMeetingRequest.Annex" name="CRMeetingRequest.Annex" value="" filetype="" isflow="1" class="myfile" title=""/></td></tr></tbody></table>